package com.weiyuwqj.server.service.finance.module.action;

import com.weiyuwqj.api.constant.OperateContants;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2017/4/26.
 */
public class ExpendOperateAction extends AbstractOperateAction {
    @Override
    public void changeAmount(BigDecimal operateAmount) {
        amountOperate.setAmountType(OperateContants.EXPEND_TYPE);
        amountOperate.setOperateAmount(operateAmount.negate());
        amountOperate.setAddtime(new Date());
    }
}
